<!--首页主要内容-->
<main id="content" role="main">
  <div class="container clearfix">
    <div class="mod mod-headline">
      <h1 class="b"><?= $taxonomyTitle ?></h1>
      <p><?= $taxonomySubTitle ?></p>
    </div>
    <div class="par parsys">

      <?php foreach ($category as $k => $value) { ?>
        <?php if ($k % 2 == 0) { ?>
          <div class="colctrl"></div>
          <div class="g-row g-layout-responsive-33-66">
            <div class="block_4 g-col g-col-1 column column-first">
              <?php if (!empty($value[0])) { ?>
                <div class="block">
                  <div class="mod mod-block rectangle skin-block-bottom ga-block" title="<?= $value[0]['title'] ?>"
                       data-connectors="block">
                    <a href="<?= $value[0]['url'] ?>" class="b-secondary">

                      <div class="wrapper title-wrapper responsive-content">
                        <div class="content rich">
                          <h3><?= $value[0]['title'] ?></h3>
                        </div>
                      </div>

                      <div class="background">
                        <div class="responsive-content">
                          <img class="js-default show-center"
                               src="<?= $value[0]['image'] ?>" alt=""
                               usemap="">
                        </div>

                      </div>

                      <div class="wrapper description-wrapper">
                        <div class="content rich">
                          <h3 class="desktop-only"><?= $value[0]['title'] ?></h3>
                          <?= $value[0]['summary'] ?>
                          <button type="button" class="b inverted desktop-hidden">查看更多<i
                              class="icon-arrow-right"></i></button>
                        </div>
                      </div>
                    </a>
                  </div>
                </div>
                <?php
              } ?>
            </div>
            <div class="block_8 g-col g-col-2 column">
              <?php if (!empty($value[1])) { ?>
                <div class="block">
                  <div class="mod mod-block skin-block-right skin-block-width50 ga-block" title="<?= $value[1]['title'] ?>"
                       data-connectors="block">
                    <a href="<?= $value[1]['url'] ?>" class="b-secondary">

                      <div class="wrapper title-wrapper responsive-content">
                        <div class="content rich">
                          <h3><?= $value[1]['title'] ?></h3>
                        </div>
                      </div>

                      <div class="background">
                        <div class="responsive-content">
                          <img class="js-default show-center"
                               src="<?= $value[1]['image'] ?>" alt=""
                               usemap="">
                        </div>
                      </div>

                      <div class="wrapper description-wrapper">
                        <div class="content rich">
                          <h3 class="desktop-only"><?= $value[1]['title'] ?></h3>
                          <?= $value[1]['summary'] ?>
                          <button type="button" class="b inverted desktop-hidden">查看更多<i
                              class="icon-arrow-right"></i></button>
                        </div>
                      </div>
                    </a>
                  </div>
                </div>
                <?php
              } ?>
              <?php if (!empty($value[2])) { ?>
                <div class="block">
                  <div class="mod mod-block skin-block-left skin-block-width50 ga-block" title="<?= $value[2]['title'] ?>"
                       data-connectors="block">
                    <a href="<?= $value[2]['url'] ?>" class="b-secondary">
                      <div class="wrapper title-wrapper responsive-content">
                        <div class="content rich">
                          <h3><?= $value[2]['title'] ?></h3>
                        </div>
                      </div>

                      <div class="background">
                        <div class="responsive-content">
                          <img class="js-default show-center"
                               src="<?= $value[2]['image'] ?>" alt=""
                               usemap="">
                        </div>

                      </div>

                      <div class="wrapper description-wrapper">
                        <div class="content rich">
                          <h3 class="desktop-only"><?= $value[2]['title'] ?></h3>
                          <?= $value[2]['summary'] ?>
                          <button type="button" class="b inverted desktop-hidden">查看更多<i
                              class="icon-arrow-right"></i></button>
                        </div>
                      </div>
                    </a>
                  </div>
                </div>
                <?php
              } ?>
            </div>

          </div>
        <?php }
        else { ?>
          <div class="colctrl"></div>
          <div class="g-row g-layout-responsive-66-33">
            <div class="block_8 g-col g-col-1 column column-first">
              <?php if (!empty($value[0])) { ?>
                <div class="block">
                  <div class="mod mod-block skin-block-left skin-block-width50 ga-block" title="<?= $value[0]['title'] ?>"
                       data-connectors="block">
                    <a href="<?= $value[0]['url'] ?>" class="b-secondary">

                      <div class="wrapper title-wrapper responsive-content">
                        <div class="content rich">
                          <h3><?= $value[0]['title'] ?></h3>
                        </div>
                      </div>

                      <div class="background">
                        <div class="responsive-content">
                          <img class="js-default show-center"
                               src="<?= $value[0]['image'] ?>" alt=""
                               usemap="">
                        </div>

                      </div>

                      <div class="wrapper description-wrapper">
                        <div class="content rich">
                          <h3 class="desktop-only"><?= $value[0]['title'] ?></h3>
                          <?= $value[0]['summary'] ?>
                          <button type="button" class="b inverted desktop-hidden">查看更多<i
                              class="icon-arrow-right"></i></button>
                        </div>
                      </div>
                    </a>
                  </div>
                </div>
                <?php
              } ?>
              <?php if (!empty($value[1])) { ?>
                <div class="block">
                  <div class="mod mod-block skin-block-right skin-block-width50 ga-block"
                       title="<?= $value[1]['title'] ?>" data-connectors="block">
                    <a href="<?= $value[1]['url'] ?>" class="b-secondary">

                      <div class="wrapper title-wrapper responsive-content">
                        <div class="content rich">
                          <h3><?= $value[1]['title'] ?></h3>
                        </div>
                      </div>

                      <div class="background">
                        <div class="responsive-content">
                          <img class="js-default show-center"
                               src="<?= $value[1]['image'] ?>" alt=""
                               usemap="">
                        </div>

                      </div>

                      <div class="wrapper description-wrapper">
                        <div class="content rich">
                          <h3 class="desktop-only"><?= $value[1]['title'] ?></h3>
                          <?= $value[1]['summary'] ?>
                          <button type="button" class="b inverted desktop-hidden">查看更多<i
                              class="icon-arrow-right"></i></button>
                        </div>
                      </div>
                    </a>
                  </div>
                </div>
                <?php
              } ?>
            </div>
            <div class="block_4 g-col g-col-2 column">
              <?php if (!empty($value[2])) { ?>
                <div class="block">
                  <div class="mod mod-block rectangle skin-block-top ga-block" title="<?= $value[2]['title'] ?>"
                       data-connectors="block">
                    <a href="<?= $value[2]['url'] ?>" class="b-secondary">

                      <div class="wrapper title-wrapper responsive-content">
                        <div class="content rich">
                          <h3><?= $value[2]['title'] ?></h3>
                        </div>
                      </div>

                      <div class="background">
                        <div class="responsive-content">
                          <img class="js-default show-center"
                               src="<?= $value[2]['image'] ?>" alt=""
                               usemap="">
                        </div>
                      </div>

                      <div class="wrapper description-wrapper">
                        <div class="content rich">
                          <h3 class="desktop-only"><?= $value[2]['title'] ?></h3>
                          <?= $value[2]['summary'] ?>
                          <button type="button" class="b inverted desktop-hidden">查看更多<i
                              class="icon-arrow-right"></i></button>
                        </div>
                      </div>
                    </a>
                  </div>
                </div>
                <?php
              } ?>
            </div>

          </div>
        <?php } ?>
      <?php } ?>
      <div class="newsmediareleaseteaser">
        <div class="mod mod-news-article-teaser">
          <div class="clearfix">
            <?php foreach ($news as $k => $new) {
              if ($k < 3) {
                ?>
                <article class="grid_4 ga-news-teaser">
                  <a href="<?= $new['url'] ?>" class="b">
                    <h3 class="b"><?= $new['title'] ?></h3>
                  </a>
                  <div>
                    <?= $new['summary'] ?>
                  </div>
                </article>
              <?php }
            } ?>

          </div>
          <div class="footer">
            <a href="<?= url('news/article') ?>" class="b" target="_blank">All news</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</main>